package com.my.chapter10;

public class practice1 {
    public static void main(String[] args) {
        Outer o =new Outer();
        Outer.Inner i = o.inner();
    }
}

class Outer{
    Outer(){
        System.out.println("Outer");
    }

    class Inner{
        Inner(){
            System.out.println("Inner");
        }
    }

    public Inner inner(){
        return new Inner();
    }
}
